// 全局组件
import PageTool from '@/components/PageTool'
import UploadExcelComponent from '@/components/UploadExcel'
import UploadImg from '@/components/UploadImg'
import ImgHolder from '@/components/imgHolder'
import Lang from '@/components/Lang'
import ScreenFull from '@/components/FUllScreen'
// 使用插件
const MyPlugin = {
  install(Vue) {
    Vue.component(PageTool.name, PageTool)
    // console.log('插件注册，调用install，传入的参数是', Vue)
    // 在Vue的构造器的原型上添加这个功能
    // Vue.prototype.$bus = () => { console.log('王德发') }
    // 添加全局过滤器,组件,
    Vue.component(UploadExcelComponent.name, UploadExcelComponent)
    Vue.component(UploadImg.name, UploadImg)
    Vue.component(ImgHolder.name, ImgHolder)
    Vue.component(Lang.name, Lang)
    Vue.component(ScreenFull.name, ScreenFull)
  }
}
export default MyPlugin
